
// 点击图片出现遮罩层
let list = document.querySelectorAll('.list-pic li');
let mask = document.querySelectorAll('.mask');
for (let i = 0; i < list.length; i++) {
  list[i].onclick = function () {
    mask[i].style.display = 'block';
  }
}